package com.emergency.direct.dao;

import com.emergency.base.domain.Plan;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface PlanDao extends JpaRepository<Plan, Long>, JpaSpecificationExecutor<Plan> {


    @Query(value = "select p from  Plan p where p.id=:id")
    Plan findAllById(@Param ("id") Long id);
}
